package com.sl.eurekaserver.servicce;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.sl.eurekaserver.entity.User;

@Service
public class UserService {

	
	public User getUserByUserName(String userName){
		return new User(userName);
	}
	
	
	public List<User> getUsers(List<String> userNameList){
		List<User> usList = new ArrayList<User>();
		for(String userName : userNameList){
			usList.add(new User(userName));
		}
		return usList;
	}
}
